// @ts-nocheck
import { createApp } from 'vue'
import App from './App.vue'
import Router from './router'

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import * as AntDesignIcons from '@ant-design/icons-vue'

//自定义
import './styles/index.css'
import AppPage from './components/Page/AppPage.vue'
import AppPageCard from './components/Page/AppPageCard.vue'
import AppPageSearch from './components/Page/AppPageSearch.vue'

//上传组件
import Upload from  './components/Upload/install'


let app = createApp(App)


// 注册ant 图标组件
Object.keys(AntDesignIcons).forEach(key => {
    let icon: any = AntDesignIcons[key];

    // Icon
    app.component(key, icon)
})

app.component('app-page', AppPage)
app.component('app-page-card', AppPageCard)
app.component('app-page-search', AppPageSearch)


app.config.globalProperties.$Icon = AntDesignIcons;

app.use(Router)
    .use(Antd)
    .use(Upload)
    .mount('#app');